<?php

$json = json_encode(
            array(
                "success" =>  $success,
                "id" => $user->getId(),
                "email" =>  $user->getEmail(),
                "name" =>  $user->getNombre(),
                "packet" =>  $user->getPlataforma(),
            )
	);
echo $json;

?>